package com.fh.user.controller;

import com.fh.common.baseData.TongyiData;
import com.fh.user.entity.vo.User;
import com.fh.user.service.UserService;
import com.sun.jersey.api.ParamException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author SXL
 * @version 1.0.0
 * @ClassName UserController.java
 * @Description TODO
 * @createTime 2021年12月09日 08:44:00
 */
@RestController
@RequestMapping("user/")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("queryAllData")
    public TongyiData queryAllData(){
        List <User> users=userService.queryAllData();
        return TongyiData.succee(users);
    }

}
